$(function() {  
});

function onload(){
	var data = "";
	var url = urlfile + "coreMyButler/find/all";
	ajaxTool("post",data,url,
	        function error(XMLHttpRequest, textStatus, errorThrown,fnErr){
	            alert("error:" + XMLHttpRequest);
	        },
	        function success(data){
	            if(!data.success) {
	                alert(data.errMsg);
	            }else{
	            	console.log(data);
	            	var item = "";
	            	for(var i=0; i<data.data.length; i++) {
	                    item += '<li class="list-li">'
							+'<i class="i_icon" id="icon'+i+'">'
							+(data.data[i].list?'<img src="'+ urlfile + "coreAttachment/image/get/" + data.data[i].list[0].cratmUuid + '"/>':'')
							+'</i>'
							+'<p>姓名：'+data.data[i].crmbrName+'</p>'
							+'<p>电话：<a id="jiliHref" href="tel:'+data.data[i].crmbrTel+'">'+data.data[i].crmbrTel+'</a></p>'
							+'<p>QQ：<a href="http://wpa.qq.com/msgrd?v=3&amp;uin='+data.data[i].crmbrQq+'&amp;site=oicqzone.com&amp;menu=yes" target="_blank">'+data.data[i].crmbrQq+'</a>'+'</p>'
							+'</li>';
						
	            	}
	            	$('.list').html(item);
	            }
	        }
	);
}